package com.zy.pay.api.response;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * 退款订单查询返回参数 <br>
 *
 * @author panweiqiang <br>
 * @date 2020/7/7 9:27 <br>
 */
public class ZyPayOrderRefundQueryResponse extends ZyPayResponse {

    /**
     * 商户编码
     */
    @JSONField(name = "cp_code")
    private String  cpCode;

    /**
     * 统一支付订单号
     */
    @JSONField(name = "tran_no")
    private String  tranNo;

    /**
     * 商户订单号
     */
    @JSONField(name = "cp_tran_no")
    private String  cpTranNo;

    /**
     * 订单交易金额，单位分
     */
    @JSONField(name = "tran_money")
    private Long    tranMoney;

    /**
     * 统一支付退款订单号
     */
    @JSONField(name = "refund_tran_no")
    private String  refundTranNo;

    /**
     * 商户退款订单号
     */
    @JSONField(name = "cp_refund_tran_no")
    private String  cpRefundTranNo;

    /**
     * 退款状态，1 退款处理中 2 退款成功 3退款失败 4退款关闭
     */
    @JSONField(name = "refund_state")
    private Integer refundState;

    /**
     * 退款时间, yyyyMMddHHmmss格式
     */
    @JSONField(name = "refund_time")
    private String  refundTime;

    /**
     * 实际退款金额，单位分
     */
    @JSONField(name = "refund_money")
    private Long    refundMoney;

    /**
     * 官方订单号，如微信400开头的订单号
     */
    @JSONField(name = "top_refund_tran_no")
    private String  topRefundTranNo;

    /**
     * 退款原因
     */
    @JSONField(name = "refund_reason")
    private String  refundReason;

    public String getCpCode() {
        return cpCode;
    }

    public void setCpCode(String cpCode) {
        this.cpCode = cpCode;
    }

    public String getTranNo() {
        return tranNo;
    }

    public void setTranNo(String tranNo) {
        this.tranNo = tranNo;
    }

    public String getCpTranNo() {
        return cpTranNo;
    }

    public void setCpTranNo(String cpTranNo) {
        this.cpTranNo = cpTranNo;
    }

    public Long getTranMoney() {
        return tranMoney;
    }

    public void setTranMoney(Long tranMoney) {
        this.tranMoney = tranMoney;
    }

    public String getRefundTranNo() {
        return refundTranNo;
    }

    public void setRefundTranNo(String refundTranNo) {
        this.refundTranNo = refundTranNo;
    }

    public String getCpRefundTranNo() {
        return cpRefundTranNo;
    }

    public void setCpRefundTranNo(String cpRefundTranNo) {
        this.cpRefundTranNo = cpRefundTranNo;
    }

    public Integer getRefundState() {
        return refundState;
    }

    public void setRefundState(Integer refundState) {
        this.refundState = refundState;
    }

    public String getRefundTime() {
        return refundTime;
    }

    public void setRefundTime(String refundTime) {
        this.refundTime = refundTime;
    }

    public Long getRefundMoney() {
        return refundMoney;
    }

    public void setRefundMoney(Long refundMoney) {
        this.refundMoney = refundMoney;
    }

    public String getTopRefundTranNo() {
        return topRefundTranNo;
    }

    public void setTopRefundTranNo(String topRefundTranNo) {
        this.topRefundTranNo = topRefundTranNo;
    }

    public String getRefundReason() {
        return refundReason;
    }

    public void setRefundReason(String refundReason) {
        this.refundReason = refundReason;
    }
}
